// 所有url请求配置 
var requestUrl = {
  useBase: "https://lhb.dcsc520.cn/appapi-0.0.1-SNAPSHOT/",
  // useBase: "http://101.201.31.55:8082/appapi-0.0.1-SNAPSHOT/",
  // useBase: "http://221.204.13.34:8080/appapi-0.0.1-SNAPSHOT/",
  // useBase: "http://172.18.4.28:8081/",
  // useBase: "http://172.18.8.17:8080/",

  /**
   * 
   */
  getPackageData(type, parentId, companyId) {
    return this.useBase + 'hyParductClassify/findClassifyByParentId?type=' + type + '&parentId=' + parentId + '&companyId=' + companyId
  },
  /**
   * 商品列表
   * post
   */
  getSplbData() {
    return this.useBase + 'hyParductManage/getPageList'
  },
  /**
   * 查询商品详情
   * get
   * 
   */
  getSpxqData() {
    return this.useBase + 'hyParductManage/findById'
  },
  /**
   * 查询商品评价
   * get
   */
  productEvaluate() {
    return this.useBase + 'comment/findByParductId'
  },
  /**
   * 用户登陆接口
   */
  getUserInfo(code) {
    return this.useBase + 'wx/openid/' + code
  },
  // 购卡中心详情页
  // 
  getCardCenterDetail(id) {
    return this.useBase + 'secondaryCard/findOne/' + id
  },
  /**
   * 积分商城
   * 首页 精选商品
   * POST
   */
  getShopSele() {
    return this.useBase + 'hyParductManage/listParductChoose'
  },
  /**
   * 积分商城
   * 首页 猜你喜欢
   * POST
   */
  getshopLike() {
    return this.useBase + 'hyParductManage/listParductLike'
  },
  /**
   * 积分商城商品分类
   * 一级
   * POST
   */
  getjfFirst() {
    return this.useBase + 'hyParductClassify/findClassifyByParentId?type=2&parentId=0'
  },
  /**
   * 积分商城商品
   * 列表接口
   * POST
   */
  getshoplist() {
    return this.useBase + 'hyParductManage/getPageList'
  },
  /**
   * 积分商城商品
   * 兑换记录
   * POST
   */
  getshopOrder() {
    return this.useBase + 'order/findOrderlist'
  },
  /**
   * 积分商城
   * 规格
   */
  getjfGuige() {
    return this.useBase + 'hyParductManage/selectParductSpec'
  },
  /**
   * 积分商城商品
   * 兑换记录 确认收货
   * POST
   */
  getshopbtnsuccess() {
    return this.useBase + 'order/setStatus'
  },

  /**
   * 积分商城商品
   * 商品详情 
   * POST
   */
  getjfshopinfo() {
    return this.useBase + 'hyParductManage/findById'
  },
  /**
   * 积分商城商品
   * 删除订单 
   * POST
   */
  getjfDeleorder() {
    return this.useBase + 'order/delOrder'
  },

  /**
   * 分销 
   * 申请合伙人
   * POST
   * http://172.188.88.214:8080/distributorManage/addDistributor
   */
  applyPartner() {
    return this.useBase + 'distributorManage/addDistributor'
  },
  /**
   * 分销 
   * 申请书  / 用户须知
   * POST
   *http://172.188.88.214:8080/distributorManage/showProposal
   */
  ApplicationUser() {
    return this.useBase + 'distributorManage/showProposal'
  },
  /**
   * 分销 
   * 分销订单
   * GET
   * http://172.188.88.214:8080/distributorManage/findDistributorOrders
   */
  distributionOrder() {
    return this.useBase + 'distributorManage/findDistributorOrders'
  },
  /**
   * 分销
   * 分销佣金
   * get
   * http://172.188.88.214:8080/distributorManage/findCommision
   */
  distributionCommission() {
    return this.useBase + 'distributorManage/findCommision'
  },
  /**
   * 分销
   * 提现明细
   * POST
   * http://172.188.88.214:8080/distributorManage/findWithdrawals
   */
  cashWithdrawal() {
    return this.useBase + 'distributorManage/findWithdrawals'
  },
  /**
   * 分销
   * 我的团队
   * get
   * http://172.188.88.214:8080/distributorManage/countDistributors
   */
  distributionTeam() {
    return this.useBase + 'distributorManage/countDistributors'
  },
  /**
   * 分销
   * 合伙人
   * 信息
   * 
   */
  distpartnerinfo() {
    return this.useBase + 'distributorManage/findDistributor'
  },
  /**
   * 分销
   * 合伙人中心
   * 团队人数
   *
   */
  distributionTeamNum() {
    return this.useBase + 'distributorManage/countDistributorsNum'
  },

  /**
   * 分销
   * 提现
   */
  TXtakeSet() {
    return this.useBase + 'distributorManage/takeSetting'
  },
  /**
   * 分销
   * 提现支付
   */
  zhmoney() {
    return this.useBase + 'distributorManage/setStatus'
  },
  /**
   * 分销
   * 扫码注册
   * POST /distributorManage/scanCode
   */
  scanCode() {
    return this.useBase + 'distributorManage/scanCode'
  },

  /**
   * 删除订单
   * post
   */
  delOrder() {
    return this.useBase + 'order/delOrder'
  },
  /**
   * 查询用户账单
   * post  custId
   */
  findUserOrderlist() {
    return this.useBase + '/billmanageList/findOrderlist'
  },

  // 领取更多优惠券
  //
  getCoupons(page, limit) {
    return this.useBase + 'coupon/findCouponBeanList?page=' + page + '&limit=' + limit
  },

  // 立即领取
  //  coupon/receiveCoupon
  getRceive() {
    return this.useBase + 'coupon/receiveCoupon'
  },
  /**
   * 门店信息
   * post
   */
  getStoreData(page, rows) {
    return this.useBase + '/shopmanager/findall?page=' + page + '&rows=' + rows
  },
  /**
   * 添加购物车
   * post
   */
  addShopCart() {
    return this.useBase + '/cart/addShopCart'
  },
  /**
   * 保存用户地址
   * post
   */
  seveUserAddress() {
    return this.useBase + 'hyAddress/addAddress'
  },
  /**
   * 查询用户地址
   * get
   * 
   */
  selectUserAdd() {
    return this.useBase + 'hyAddress/findAddress?page=1&rows=1000'
  },
  /**
   * 修改用户地址
   * post
   */
  updataUserAdd() {
    return this.useBase + 'hyAddress/updateAddress'
  },
  /**
   * 查询用户详细地址
   * GET
   */
  selectUserByAdd() {
    return this.useBase + 'hyAddress/findByAddress'
  },
  /**
   * 删除用户收货地址
   * get
   */
  deleteUserAdd() {
    return this.useBase + 'hyAddress/daleteByAddress'
  },
  /**
   * 提交订单
   * post
   */
  submitOrder() {
    return this.useBase + 'order/submitOrder'
  },
  /**
   * 查询订单
   * POST
   */
  findOrderList() {
    return this.useBase + '/order/findOrderlist'
  },
  /**
   * 查询订单详情
   * GET
   */
  getOrder(ordId) {
    return this.useBase + '/order/getOrder?ordId=' + ordId
  },
  /**
   * 获取商品规格
   * post
   */
  getGuige() {
    return this.useBase + '/hyParductManage/selectParductSpec'
  },
  /**
   * 更新订单的支付状态
   * setStatus
   */
  setStatus() {
    return this.useBase + '/order/setStatus'
  },
  /**
   * 查询积分充值/减扣记录
   * post
   */
  findRecharge() {
    return this.useBase + '/member/integral/findRecharge'
  },
  getShopInfo() {
    return this.useBase + '/shopmanager/findall?page=1&rows=1'
  },
  // 会员尊享列表
  // post
  getPrivilegeList(page, rows) {
    return this.useBase + 'member/enjoy/findall?page=' + page + '&rows=' + rows
  },
  // 首页banner
  getIndexBanner() {
    return this.useBase + 'advertising/findall'
  },
  // 次卡
  getCika() {
    return this.useBase + 'secondaryCard/findAll'
  },
  // 我的账单
  getWdzd() {
    return this.useBase + 'member/findRecharge'
  },
  //新增或更新用户信息
  regUserInfo() {
    return this.useBase + 'member/base/setmemberbase'
  },
  //新增或更新车辆信息
  getCarData() {
    return this.useBase + 'member/car/setmembercar'
  },
  //通知公告数据
  getNotifyData(page, rows) {
    return this.useBase + 'messageController/findProclaim?page=' + page + '&rows=' + rows
  },
  // 会员详情
  getMemberDetail() {
    return this.useBase + 'member/level/findall'
  },
  getBizUserInfo() {
    return this.useBase + 'member/base/findOne'
  },
  //查询可用状态与停用状态优惠券
  // GET /coupon/couponStatus
  getWdkq() {
    return this.useBase + "coupon/couponStatus"
  },
  getCarNews(lowerId, memberId, page, rows) {
    return this.useBase + 'carBookTeasure/findBooks?lowerId=' + lowerId + '&memberId=' + memberId + '&page=' + page + '&rows=' + rows
  },
  /**
   * 会员等级信息
   */
  getVipLevelData() {
    return this.useBase + 'member/level/findOne'
  },
  toPay(ordId, openId, payType) {
    return this.useBase + 'payconfig/paytpWXpayH5?ordId=' + ordId + '&openid=' + openId + '&payType=' + payType
  },
  // 次卡添加订单
  addOrder() {
    return this.useBase + 'secondaryCard/buy'
  },
  /**
   * 我的次卡查询
   * get
   * memberId(会员ID) expire（是否可用）
   * 
   */
  getWdck(memberId, expire, page, rows) {
    return this.useBase + "secondaryCard/findBuys?memberId=" + memberId + "&expire=" + expire + '&page=' + page + '&rows=' + rows
  },
  /**
   * 我的次卡扣次详情
   * get
   */
  getCkxq(memberId, cardId) {
    return this.useBase + "secondaryCard/findOneBuy?memberId=" + memberId + "&cardId=" + cardId
  },
  /**
   * 我的次卡扣次
   * 
   */
  getCkkc(memberId, cardId) {
    return this.useBase + "secondaryCard/findBuy?memberId=" + memberId + "&cardId=" + cardId

  },
  /**
   * 买单下单
   * POST
   * amt(支付金额)  companyId(厂id)  memberId(会员id)  payType(支付方式：1.微信2.支付宝3.银行卡4.余额5.现金)
   */
  getMaidan() {
    return this.useBase + "cashierDesk/check"
  },

  /**
   * 充值下单
   * POST
   */
  getBalance() {
    return this.useBase + "member/recharge/balance"
  },
  /**
   * 充值活动
   * GET
   */
  getTopActiv(page, rows) {
    return this.useBase + 'recharge/findAll?page=' + page + '&rows=' + rows
  },
  sendTemplateMsg() {
    return this.useBase + '/wx/sendMss'
  },

  /**
   * 钱包明细
   * POST
   */
  getMoneyDetail() {
    return this.useBase + 'member/balance/findRecharge'
  },
  /**
   * 支付账单
   * GET
   */
  getPayBills(memberId, page, rows) {
    return this.useBase + "cashierDesk/findAll?memberId=" + memberId + '&page=' + page + '&rows=' + rows
  },
  /**
   * 爱车百科
   * GET
   */
  // getLoveBook(lowerId,menberId, page, rows) {
  //   return this.useBase + "carBookTeasure/findBooks?lowerId=" + lowerId + '&menberId=' + menberId+ '&page=' + page + '&rows=' + rows
  // },
  getLoveBookTab(classId) {
    return this.useBase + "carBookTeasure/findClassifys?classId=" + classId
  },
  /**
   * 用车宝典Banner
   * GET
   */
  getCarBible(shopId, adCategory, page, rows) {
    return this.useBase + "advertising/findall?shopId=" + shopId + '&adCategory=' + adCategory + '&page=' + page + '&rows=' + rows
  },
  getReading(id, memberId, type) {
    return this.useBase + "carBookTeasure/setReading?id=" + id + '&memberId=' + memberId + '&type=' + type
  },
  /**
   * 注册会员购卡查询
   * GET
   */
  getMemberShip() {
    return this.useBase + "member/opencard/deadline"

  },
  /** 专题
   * GET
   */
  getSpecialList(companyId, page, limit) {
    return this.useBase + 'carspecial/findClass?companyId=' + companyId + '&page=' + page + '&limit=' + limit
  },
  /**列表
   * POST
   */
  getSpecial() {
    return this.useBase + "carspecial/findSpecials"
  },
  /**详情
   * GET
   */
  getSpecialDetail(id, memberId) {
    return this.useBase + 'carspecial/findOne?id=' + id + '&memberId=' + memberId
  },
  /**
   * 点赞
   */
  getSpecialReading(id, memberId, type) {
    return this.useBase + "carspecial/setDummy?id=" + id + '&memberId=' + memberId + '&type=' + type
  },
  /**
   * 注册支付
   * POST
   */
  getLogin() {
    return this.useBase + 'member/card/buy'
  },
  /**
   * 海报
   * GET
   */
  shareCommodity() {
    return this.useBase + 'hyParductManage/fxById'
  },
  /**
   * 一键预约 预约项目
   * post
   */
  findrepairing() {
    return this.useBase + 'repairing/findrepairing'
  },
  /**
   * 一键预约 提交预约项目
   * post
   */
  setRepairing() {
    return this.useBase + 'car/setRepairing'
  },
  /**
   * 一键救援 提交
   */
  setRescue(){
    return this.useBase + 'car/setRescue'
  }
}




module.exports.requestUrl = requestUrl;
exports.requestUrl = requestUrl;